# _*_ coding: UTF-8 _*_
# @Time     :2023-11-20 15:14
# @Author   :Yunlian Zeng
# @File     :login.py
from class_202310_chuanxin.testSmeOA.common.session_obj import SessionObj

class Login(SessionObj):
    def login(self,user,pwd):
        datas = {'emp_no': user, 'password': pwd}  # post请求的正文
        url = 'http://localhost/smeoa/login/check_login'
        self.r = self.s.post(url, data=datas)  # 默认重定向
        return self.r


if __name__ == '__main__':
    r = Login().login('admin','admin')
    print(r.status_code)
    # print(r.login('admin','admin').text)